﻿using System.Collections.ObjectModel;
using System.Web.Mvc;
using OperationPlugins.Validators;

namespace OperationPlugins.Mvc
{
    /// <summary>
    /// Used to route notification messages.
    /// </summary>
    public interface INotificationRouter
    {
        /// <summary>
        /// Shows notifications on a view.
        /// </summary>
        /// <param name="controller">The controller.</param>
        /// <param name="notifications">Notifications to show.</param>
        void ShowOnView(ControllerBase controller, ReadOnlyCollection<ValidationResultMessage> notifications);
    }
}
